//
//  ZZColorRGBA.h
//  ZZBlue
//
//  Created by stonesMonkey on 2017/9/22.
//  Copyright © 2017年 stonesMonkey. All rights reserved.
//

#import "ZModel.h"

@interface ZZColorRGBA : ZModel<NSCoding,NSCopying>

@property (nonatomic, assign)CGFloat R;

@property (nonatomic, assign)CGFloat G;

@property (nonatomic, assign)CGFloat B;

@property (nonatomic, assign)CGFloat A;


/**
 
 */
+ (instancetype)colorRGBAWithR:(CGFloat)R G:(CGFloat)G B:(CGFloat)B A:(CGFloat)A;

- (UIColor *)color;

+ (ZZColorRGBA *)rgbaFromColor:(UIColor *)color;

+ (NSArray<UIColor *> *)colorsFromRGBA:(NSArray<ZZColorRGBA *> *)rgbas;

+ (NSArray <ZZColorRGBA *>*)rgbasFromColors:(NSArray <UIColor *>*)colors;
-(id)copy;

@end
